<nz-modal [(nzVisible)]="isVisible"
          [nzWidth]="400" nzTitle="售货机参数设置"
          (nzOnCancel)="handleCancel()"
          (nzOnOk)="handleOk()"
          [nzOkLoading]="isOkLoading"

>

  <nz-spin [nzSpinning]="isSpinning">
    <div>
      <nz-form-item>
        <nz-form-label nzFor="name">设备类型</nz-form-label>
        <nz-form-control>
          <nz-select  [(ngModel)]="vendingMachineType">
            <nz-option nzLabel="弹簧机(30018)" [nzValue]=30018></nz-option>
            <nz-option nzLabel="弹簧机魏总专版(30021)" [nzValue]=30021></nz-option>
            <nz-option nzLabel="格子机(30019)" [nzValue]=30019></nz-option>
            <nz-option nzLabel="混合售货机(30024)" [nzValue]=30024></nz-option>
            <nz-option nzLabel="格子机(30036)" [nzValue]=30036></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">行线类型</nz-form-label>
        <nz-form-control>
          <nz-select  [(ngModel)]="hierarchySequence">
            <nz-option nzLabel="不设置" [nzValue]=0></nz-option>
            <nz-option nzLabel="正" [nzValue]=1></nz-option>
            <nz-option nzLabel="反" [nzValue]=2></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">列线类型</nz-form-label>
        <nz-form-control>
          <nz-select  [(ngModel)]="freightLaneSequence">
            <nz-option nzLabel="不设置" [nzValue]=0></nz-option>
            <nz-option nzLabel="正" [nzValue]=1></nz-option>
            <nz-option nzLabel="反" [nzValue]=2></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">反馈类型</nz-form-label>
        <nz-form-control>
          <nz-select  [(ngModel)]="reverseSequence">
            <nz-option nzLabel="不设置" [nzValue]=0></nz-option>
            <nz-option nzLabel="正" [nzValue]=1></nz-option>
            <nz-option nzLabel="反" [nzValue]=2></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">反转线序</nz-form-label>
        <nz-form-control>
          <nz-select  [(ngModel)]="feedbackSequence">
            <nz-option nzLabel="不设置" [nzValue]=0></nz-option>
            <nz-option nzLabel="正" [nzValue]=1></nz-option>
            <nz-option nzLabel="反" [nzValue]=2></nz-option>
          </nz-select>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzFor="name">开锁时间(秒)</nz-form-label>
        <nz-form-control >
          <nz-input-number [(ngModel)]="lockTime" [nzMin]="0" [nzMax]="1000" [nzStep]="1" style="width: 100%"></nz-input-number>
        </nz-form-control>
      </nz-form-item>

      <nz-form-item>
        <nz-form-label nzFor="name">出货时间(秒)</nz-form-label>
        <nz-form-control >
          <nz-input-number [(ngModel)]="deliveryTime" [nzMin]="0" [nzStep]="1" style="width: 100%"></nz-input-number>
        </nz-form-control>
      </nz-form-item>

      <nz-form-item>
        <nz-form-label nzFor="name">支付限制时长(秒)</nz-form-label>
        <nz-form-control >
          <nz-input-number [(ngModel)]="payLimitTime"  [nzMax]="200" [nzStep]="1"  style="width: 100%"></nz-input-number>
        </nz-form-control>
      </nz-form-item>

    </div>

  </nz-spin>
</nz-modal>
